package com.daxiasoftware.xxx.entity;

import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 用户表
 */
@TableName("sys_menu")
@SuppressWarnings("serial")
public class Menu extends SuperEntity<Menu> {

    private Long id;
	/**
	 * starts with 0.
	 */
	private Integer level;
	private String name;
	private String href;
	/**
	 * this field is for dwz only.
	 */
	private String rel;

	/**
	 * 顺序哦
	 */
	private Integer seq;
	
	private boolean show;
	private Boolean deleted;
	/**
	 * 图标，参见http://fontawesome.io/icons/
	 */
	private String icon;
	private Long parentId;
	private List<Menu> children = new ArrayList<>();
	public Integer getLevel() {
    	return level;
    }
	public void setLevel(Integer level) {
    	this.level = level;
    }
	public String getName() {
    	return name;
    }
	public void setName(String name) {
    	this.name = name;
    }
	public String getHref() {
    	return href;
    }
	public void setHref(String href) {
    	this.href = href;
    }
	public String getRel() {
    	return rel;
    }
	public void setRel(String rel) {
    	this.rel = rel;
    }
	public Integer getSeq() {
    	return seq;
    }
	public void setSeq(Integer seq) {
    	this.seq = seq;
    }
	/**
     * @return the show
     */
    public boolean getShow() {
    	return show;
    }
	/**
     * @param show the show to set
     */
    public void setShow(boolean show) {
    	this.show = show;
    }
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
	public Boolean getDeleted() {
		return deleted;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public List<Menu> getChildren() {
		return children;
	}
	public void setChildren(List<Menu> children) {
		this.children = children;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	@Override
	public String toString() {
		// return ToStringBuilder.reflectionToString(this);
		return "id: " + id + ", parentId: " + parentId + ", name: " + name + ", level: " + level;
	}
	
}
